<?php
include("../conn.php");

$query = mysql_query("select * from shop  where jingxuan=1 and city=".$_REQUEST[cityid]);
$shop = array();
$i=0;
while ($row = mysql_fetch_assoc($query)) {
	$shop[$i][id] = $row[shopid];
	$shop[$i][name] = $row[name];
	$shop[$i][images] = $row[jingxuanImg];
	$shop[$i][cityid] = $row[cityid];
	$i++;
}
$arr = array('code' => 200, 'msg' =>'查询精选商家信息成功', 'shop' => $shop);
echo json_encode($arr);